<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>心动动效小案例</title>
    <link rel="stylesheet" href="xindong.css">
</head>

<body>

    <div class="heart-box">
        <img src="https://pic.rmb.bdstatic.com/bjh/news/01ed0fe8cb18bad9eb2311b92c80c0417349.jpeg" alt="Heart"
            id="heart-img">
        <img src="https://pic.rmb.bdstatic.com/bjh/news/01ed0fe8cb18bad9eb2311b92c80c0417349.jpeg" alt="Heart"
            id="heart-img2">
    </div>

    <div class="heart-box">
        <button id="buttonStart" onclick="start()">开启心动</button>
    </div>

    <script src="xindong.js"></script>

</body>

</html>